package blog.com.mw.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import blog.com.mw.pojo.po.ArticlePO;

public interface ArticleDao {
	public ArticlePO getArticleById(Long id);

	public List<ArticlePO> getAllArticle(@Param("keyword") String keyword);
	
	public List<ArticlePO> getArticleByUserId(Long userId);
	
	public List<ArticlePO> getArticleByLabelIds(List<Long> list);
	
	public List<Long> getIdsByLabel(Long id);
	
	public List<ArticlePO> getArticleByCategoryIds(List<Long> list);
	
	public List<Long> getIdsByCategory(Long id);
	
	public int addArticle(ArticlePO article);
	
	public int updateArticle(ArticlePO article);
	
	public int delArticle(List<Integer> ids);
}
